<template>
  <main>
    <div class="main">
      <div class="title">欢迎使用称重打印系统</div>
      <el-row :gutter="20">
        <el-col :span="8">
          <ClassifyCard
            title="计重商品分拣"
            bgText="计重"
            bgColor="#5f95cb"
            @click="goPage('goodList?type=1')"
          />
        </el-col>
        <el-col :span="8">
          <ClassifyCard
            title="按订单分拣"
            bgText="订单"
            bgColor="#4AAB74"
            @click="goPage('orderSorting')"
          />
        </el-col>
        <el-col :span="8">
          <ClassifyCard
            title="不计重商品分拣"
            bgText="不计重"
            bgColor="#9173CD"
            @click="goPage('goodList?type=2')"
          />
        </el-col>
        <el-col :span="8">
          <ClassifyCard
            title="订单差异分拣"
            bgText="差异"
            bgColor="#DB7F45"
            @click="goPage('orderDifferences')"
          />
        </el-col>
      </el-row>
    </div>
    <div class="main">
      <div class="title">入库导出功能</div>
      <el-row :gutter="20">
        <el-col :span="8">
          <FunCard title="绩效导出" iconUrl="" />
        </el-col>
        <el-col :span="8">
          <FunCard title="缺货导出" iconUrl="" />
        </el-col>
      </el-row>
    </div>
    <ShowNumCard />
  </main>
</template>
<script setup lang="ts">
import ClassifyCard from '../components/classifyCard.vue'
import FunCard from '../components/funCard.vue'
import ShowNumCard from '../components/showNumCard.vue'
import router from '../router'
const goPage = (path: string) => {
  router.push(path)
}
</script>

<style scoped lang="less">
main {
  box-sizing: border-box;
  padding: 20px;
  padding-bottom: 10px;
  height: calc(100vh - 107px);
  overflow: auto;

  .main {
    background: var(--vt-c-white);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 10px;
    .title {
      color: var(--vt-c-black);
      font-size: 24px;
      font-family:
        PingFangSC,
        PingFang SC;
      font-weight: 500;
      line-height: 33px;
      margin-bottom: 20px;
    }
  }
}
</style>
